package com.smedi.ismedi.cronjob.core.domain.service;

import com.smedi.ismedi.cronjob.core.domain.aggregatemodel.JobInfo;

import java.util.List;

public interface JobInfoDomainService {
    Boolean runJob(JobInfo jobInfo);

    Boolean pauseJob(JobInfo jobInfo);

    Boolean resumeJob(JobInfo jobInfo);

    Boolean refreshJob(JobInfo jobInfo);

    List<JobInfo> restartAllJob();

    JobInfo insertJob(JobInfo jobInfo);

    boolean deleteJob(JobInfo jobInfo);

    JobInfo updateJob(JobInfo jobInfo);

    JobInfo getJob(Long id);

    List<JobInfo> listJob(JobInfo jobInfo);
}
